package com.yifeng.repo.micro.service.server.engine.configure;

import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceProperties;
import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourcePropertiesCustomizer;
import com.yifeng.repo.micro.service.server.engine.routing.CompositeDynamicDataSourceStrategy;

/**
 * Created by daibing on 2023/6/24.
 */
public class ServerEngineDynamicDataSourcePropertiesCustomizer implements DynamicDataSourcePropertiesCustomizer {

    @Override
    public void customize(DynamicDataSourceProperties properties) {
        properties.setStrategy(CompositeDynamicDataSourceStrategy.class);
    }
}
